﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace File_Operate_Program
{
    public class Singleton
    {
        private Singleton() { }
        public static Singleton _instance
        {
            get
            {
                if (instance == null)
                {
                    lock (SingletonLock)
                    {
                        instance = new Singleton();
                    }
                }
                return instance;
            }
        }

        private static Singleton instance = null;

        private static object SingletonLock = new object();//加锁，防止多线程
        public string FilePath { get; set; }
        public string ConfigIniPath { get; set; }
    }
}
